home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000103_news@newsmaster….columbia.edu _Thu Jul 24 11:58:56 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA18579
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 24 Jul 1997 11:58:55 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA12460
for kermit.misc@watsun; Thu, 24 Jul 1997 11:58:53 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: ftp script
Date: 24 Jul 1997 15:58:50 GMT
Organization: Columbia University
Lines: 61
Message-ID: <5r7u3q$510$1@apakabar.cc.columbia.edu>
References: <5r7qha$c40$1@trotsky.cig.mot.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:7381
In article <5r7qha$c40$1@trotsky.cig.mot.com>,
Robert H. Bradshaw <bradshaw@pcs.mot.com> wrote:
: I am trying to use C-kermit's scripting feature to automate an ftp session.
: QUESTION: Is this a could idea? I know there are other tools that can do
: this like expect, perl, etc. These tools may be better suited for this type
: of scripting but I want to minimize the number of tools that are used for
: this project and I am already using kermit.
:
: I need to make a hop through a firewall and then to the ftp server. The
: problem I am having is how to actually connect to the ftp session.
: I have tried
: C-Kermit> ftp firewall
: but this just starts an ftp session and does not allow me to use the
: input/output functions.
:
Right.
: I have also tried
: C-Kermit> set host firewall ftp
:
: This doesn't seem to establish a correct ftp session. I receive messages
: like: 500 '': command not understood.
:
Right -- if you did this, you would need to write a script to execute the
FTP protocol, but that is not possible because it would demand two TCP
connections -- one for data and one for control -- and Kermit presently only
supports one connection at a time.
At some point we expect to build ftp protocol into Kermit, but we haven't
done it yet.
: I want to be able to do something like...
:
: clear input
: set host firewall ftp ; setup connection
: ; may have to login here
: input 5 firewall>
: output {ftp xxx.yyy.zzz.aaa\13} ; send the ftp command
: input 5 login: ; login
: output myname\13
: input 9 assword:
: output mypassword\13
: input 5 ftp> ; wait for ftp prompt
:
: output bin\13 ; set binary mode
: input 20 ftp> ; wait for ftp prompt
: output {get some_binary_file\13} ; transfer the file
: input 200 ftp>
: output bye\13 ; exit ftp
: output quit\13 ; exit firewall
:
This should work just fine if you change:
set host firewall ftp ; setup connection
to:
set host firewall ; setup connection
- Frank